package com.yhx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yhx.mapper.CheckgroupCheckitemMapper;
import com.yhx.pojo.CheckgroupCheckitem;
import com.yhx.service.CheckgroupCheckitemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CheckgroupCheckitemServiceImpl implements CheckgroupCheckitemService {
    @Resource
    private CheckgroupCheckitemMapper checkgroupCheckitemMapper;
    @Override
    public List<CheckgroupCheckitem> listByCheckgroupId(int checkgroupId) {
        QueryWrapper<CheckgroupCheckitem> checkgroupCheckitemQueryWrapper = new QueryWrapper<>();
        checkgroupCheckitemQueryWrapper.eq("checkgroup_id", checkgroupId);
        return checkgroupCheckitemMapper.selectList(checkgroupCheckitemQueryWrapper);
    }
}
